<?php
session_start();

include '../../connections/dbconnect.php';
include '../../globalVars.php';
include '../../globalFuncs.php';
include '../../profile/functions.php';

if(isset($_POST['t'], $_POST['uid'])){

	$t = $_POST['t']; //FOLLOW OR UNFOLLOW
	$uid = Mres($_POST['uid']);
	
	if($t == "unfollow"){
		$query = Unfollow($userID, $uid);
		die($query);
	} else if($t == "follow"){
		$query = Follow($userID, $uid);
		die($query);
	}
	
}
?>